#!/usr/bin/python
# -*- coding: <utf-8> -*-
import tornado.options
import tornado.httpserver
import tornado.ioloop
from tornado.options import define, options
from settings import Application

define('port', default=8080, type=int)

if __name__ == '__main__':
    tornado.options.parse_command_line()
    http_server = tornado.httpserver.HTTPServer(Application())
    http_server.listen(options.port)
    tornado.ioloop.IOLoop.instance().start()
